package org.jwcloud.project.module.zx.template.service.repository;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import com.jw.mid.mm.comm.common.pagination.ListBounds;
import org.apache.ibatis.annotations.Param;

/**
 * 模板
 * @author song
 *
 */
@Mapper
public interface RptTemplateRepository {

	public List<Map<String, String>> queryCodeList(Map tableName);
	
	public List queryTemplateList(Map<String, String> params);
	public List queryTemplateList(@Param("params") Map<String, String> params, @Param(ListBounds.NAME) ListBounds bounds);
	public String queryTemplateList_total(Map<String, String> param);
	public String checkTemplate(Map<String, String> param);
	public String checkTemplate_copy(Map<String, String> param);
	
	public String checkWork(Map<String, String> param);
	public String checkTask(Map<String, String> param);
	public String checkTask_sz(Map<String, String> param);
	
	public int doTemplateInsert(Map param);
	public int doTemplateUpdate(Map param);
	public int doTemplateDelete(Map param);
	/**
	 * 设置启用
	 * @param param
	 * @return
	 */
	public int doTemplateSetStart(Map param);
	
	public int doTemplateCopy(Map param);
	
	
	
	
	public List<Map<String, String>> queryWorkList(Map param);
	public int doWorkInsert(Map param);
	public int doTemplateWorkInsert(Map param);
	public int doWorkInsertPrior(Map param);
	public int doWorkUpdate(Map param);
	public int doWorkDelete(Map param);
	
	public int doWorkDeletePrior(Map param);
	public int doWorkDeletePrior_log(Map param);
	
	public List<Map<String, String>> queryPriorWorkList(Map param);
	
	public List<Map<String, String>> queryWorkRelList_byTemplate(Map param);
	
	
	
	
	
	
	
	public List<Map<String, String>> queryTaskList(Map param);
	public List<Map<String, String>> queryItemList(Map param);
	public List<Map<String, String>> queryTaskList_sz(Map param);
	public String queryTaskList_sz_total(Map param);
	public String queryItemList_sz_total(Map param);
	public List<Map<String, String>> queryItemList_sz(Map param);
	public int updateTask(Map param);
	public int updateTask_sz(Map param);
	public int insertTask(Map param);
	public int insertTask_spPerson(Map param);
	public int deleteTaskSpPerson(Map param);
	
	public List<Map<String, String>> queryTaskList_sz_rel_template(Map param);
	
	public int insertTask_sz(Map param);
	
	public int insertItem(Map param);
	public int insertItem_sz(Map param);
	public int insertCol(Map param);
	public int updateItem_sz(Map param);
	
	public int deleteTask(Map param);
	public int deleteItem(Map param);
	public int deleteTask_sz(Map param);
	public int deleteItem_sz(Map param);
	public int deleteItem_sz_byTask(Map param);
	
	public String checkItem_sz(Map param);
	public int deleteCol(Map param);
	
	public int insertItemTask_sz(Map param);
	
	
}
